package com.example.aicooking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aicooking.entity.CookingStep;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CookingStepMapper extends BaseMapper<CookingStep> {
    @Select("SELECT * FROM cooking_step WHERE works_id = #{worksId} ORDER BY step_number")
    List<CookingStep> findByWorksId(Long worksId);
}
